<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
    <head>
         <jsp:include page="includes/script.html"/>
        <title>K3 Report</title>
    </head>
    <body>
        <center>
         <form method="get">


           From : <input type="text" value="${start}" name="start" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('start', false, 'ymd', '-');" />&nbsp;
             To : <input type="text" value="${end}" name="end" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('end', false, 'ymd', '-');" />&nbsp;
               <input  type="submit" name="submit" value="View" >

        </form>
        </center>
               <br>
               <center>
                   
               <table width="900" border="0">
                   <tr>
                       <td align="center">
                           <h2><b>Kalender Kecelakaan Kerja</b></h2>
                       </td>
                   </tr>
                   <tr>
                       <td>&nbsp;</td>
                   </tr>
                   <tr>
                       <td>&nbsp;</td>
                   </tr>
                   <tr>
                       <td align="center">
                           <table cellpadding="0" cellspacing="1" border="0" bgcolor="#000000">
                               <tr>
                                   <td width="50" height="50" bgcolor="${stat[0]}" title="${desc[0]}">01</td>
                                   <td width="50" height="50" bgcolor="${stat[1]}" title="${desc[1]}">02</td>
                               </tr>
                                <tr>
                                   <td width="50" height="50" bgcolor="${stat[2]}" title="${desc[2]}">03</td>
                                   <td width="50" height="50" bgcolor="${stat[3]}" title="${desc[3]}">04</td>
                               </tr>
                                <tr>
                                   <td width="50" height="50" bgcolor="${stat[4]}" title="${desc[4]}">05</td>
                                   <td width="50" height="50" bgcolor="${stat[5]}" title="${desc[5]}">06</td>
                               </tr>
                           </table>
                       </td>
                   </tr>

                   <tr>
                       <td align="center">
                           <table border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
                               <tr>
                                   <td width="50" height="50" bgcolor="${stat[6]}" title="${desc[6]}">07</td>
                                    <td width="50" height="50" bgcolor="${stat[7]}" title="${desc[7]}">08</td>
                                     <td width="50" height="50" bgcolor="${stat[8]}" title="${desc[8]}">09</td>
                                      <td width="50" height="50" bgcolor="${stat[9]}" title="${desc[9]}">10</td>
                                       <td width="50" height="50" bgcolor="${stat[10]}" title="${desc[10]}">11</td>
                                        <td width="50" height="50" bgcolor="${stat[11]}" title="${desc[11]}">12</td>
                                         <td width="50" height="50" bgcolor="${stat[12]}" title="${desc[12]}">13</td>
                                          <td width="50" height="50" bgcolor="${stat[13]}" title="${desc[13]}">14</td>
                                           <td width="50" height="50" bgcolor="${stat[14]}" title="${desc[14]}">15</td>
                                            <td width="50" height="50" bgcolor="${stat[15]}" title="${desc[15]}">16</td>
                               </tr>
                                <tr>
                                   <td width="50" height="50" bgcolor="${stat[16]}" title="${desc[16]}">17</td>
                                    <td width="50" height="50" bgcolor="${stat[17]}" title="${desc[17]}">18</td>
                                     <td width="50" height="50" bgcolor="${stat[18]}" title="${desc[18]}">19</td>
                                      <td width="50" height="50" bgcolor="${stat[19]}" title="${desc[19]}">20</td>
                                       <td width="50" height="50" bgcolor="${stat[20]}" title="${desc[20]}">21</td>
                                        <td width="50" height="50" bgcolor="${stat[21]}" title="${desc[21]}">22</td>
                                         <td width="50" height="50" bgcolor="${stat[22]}" title="${desc[22]}">23</td>
                                          <td width="50" height="50" bgcolor="${stat[23]}" title="${desc[23]}">24</td>
                                           <td width="50" height="50" bgcolor="${stat[24]}" title="${desc[24]}">25</td>
                                            <td width="50" height="50" bgcolor="${stat[25]}" title="${desc[25]}">26</td>
                               </tr>
                           </table>
                       </td>
                   </tr>
                   <tr>
                  
                       <td align="center">
                           <table cellspacing="1" cellpadding="1" border="0" bgcolor="#000000">
                               <tr>
                                   <td width="50" height="50" bgcolor="${stat[26]}" title="${desc[26]}">27</td>
                                   <td width="50" height="50" bgcolor="${stat[27]}" title="${desc[27]}">28</td>
                               </tr>
                                <tr>
                                   <td width="50" height="50" bgcolor="${stat[28]}" title="${desc[28]}">29</td>
                                   <td width="50" height="50" bgcolor="${stat[29]}" title="${desc[29]}">30</td>
                               </tr>
                                <tr>
                                   <td width="50" height="50" bgcolor="${stat[30]}" title="${desc[30]}">31</td>
                                   <td width="50" height="50" bgcolor="#FFFFFF">&nbsp;</td>
                               </tr>
                           </table>
                       </td>
                       <td>
                           <table>
                               <tr>
                                   <td colspan="2">Keterangan</td>
                               </tr>
                               <tr>
                                   <td width="35" height="35" bgcolor="#009000"></td>
                                   <td>: Tanpa Kecelakaan</td>
                               </tr>
                               <tr>
                                   <td width="35" height="35" bgcolor="#FFFF00"></td>
                                   <td>: Kecelakaan Ringan</td>
                               </tr>
                               <tr>
                                   <td width="35" height="35" bgcolor="#FF0000"></td>
                                   <td>: Kecelakaan Berat</td>
                               </tr>

                           </table>
                       </td>
                   </tr>

               </table>
                                   </center>
    </body>
</html>
